<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.css">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.js"></script>
</head>

<body class="container">
    <h3 align="center">垂直方向排列</h3>
    <h4>1. flex-column（从上往下）</h4>
    <div class="d-flex flex-column p-3 bg-warning text-white">
        <div class="p-2 bg-primary">家用电器</div>
        <div class="p-2 bg-success">办公电脑</div>
        <div class="p-2 bg-danger">男装女装</div>
    </div><br />
    <h4>2. flex-column-reverse（从下往上）</h4>
    <div class="d-flex flex-column-reverse bg-warning p-3 text-white">
        <div class="p-2 bg-primary">家用电器</div>
        <div class="p-2 bg-success">办公电脑</div>
        <div class="p-2 bg-danger">男装女装</div>
    </div>
</body>

</html>